// get the client
const mysql = require('mysql')

// create the connection to database
const connection = mysql.createConnection({
  host: '47.101.45.245', // 主机 ip
  user: '2006A-shixun',
  database: '2006a-shixun',
  password: 'T6jz8zcyBbjHCbFK',
})

connection.query('select * from users', (err, data) => {
  console.log('err:', err, data)
})
